package com.ksd.modules.advert.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.commons.IBaseService;
import com.ksd.modules.advert.entity.AdminAdvertment;
import com.ksd.modules.advert.po.AdminAdvertMentSavePO;
import com.ksd.modules.advert.po.AdminAdvertMentSearchPO;

import java.util.List;

/**
 * <p>
 * 广告商 服务类
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-16
 */
public interface IAdminAdvertisementService extends IBaseService<AdminAdvertment> {

    /**
     * 查询首页广告商接口搜索并分页
     * @return
     */
    Page<AdminAdvertment> findAdminAdvertment(AdminAdvertMentSearchPO adminAdvertMentSearchPO);


    /**
     * 保存广告商
     */
    boolean saveUpdateAdminAdvertment(AdminAdvertMentSavePO adminAdvertMentSavePO);

    /**
     * 删除广告商
     * @param id
     * @return
     */
    boolean deleteAdminAdvertmentById(Long id);

    /**
     * 查询所有的广告商
     * @return
     */
    List<AdminAdvertment> getList();
    /**
     * 根据id获取广告商信息
     * @param id
     * @return
     */
    AdminAdvertment getAdminAdvertmentById(Long id);
}
